import request from "@/utils/request";

// 查询题目数据列表
export function listQuestions(query) {
  return request({
    url: "/system/questions/list",
    method: "get",
    params: query,
  });
}

// 查询题目数据详细
export function getQuestions(id) {
  return request({
    url: "/system/questions/" + id,
    method: "get",
  });
}

// 新增题目数据
export function addQuestions(data) {
  return request({
    url: "/system/questions",
    method: "post",
    data: data,
  });
}

// 修改题目数据
export function updateQuestions(data) {
  return request({
    url: "/system/questions",
    method: "put",
    data: data,
  });
}

// 删除题目数据
export function delQuestions(id) {
  return request({
    url: "/system/questions/" + id,
    method: "delete",
  });
}
